You can use DO
and LOOP
to make the two statements
into a loop body.
A way to repeat two statements is in the following program:
' Counting up LET COUNT = 0 DO PRINT COUNT LET COUNT = COUNT + 1 LOOP END
If you run this program, the output on the screen will go by so fast that all you see is a blur. But on a slow computer you would see:
0 1 2 3 4 5 6 7 8 9 ... and so on ....
If you want to see something other than a blur, do this:
If you now want the re-start the program from the beginning, hit SHIFT-F5. If you want to continue running the program from where it left off, hit F5 and continue with the above steps.
If you let the program run for exactly one second after starting it, then pause the run, what is the largest number you will see on the screen? (Just take a guess.)